gtk: Hold reference on controller until events are fully handled
authorMaxim Zakharov <zakhma@muli.com.au>
Wed, 27 Oct 2021 00:37:36 +0000 (11:37 +1100)
committerMaxim Zakharov <zakhma@muli.com.au>
Wed, 27 Oct 2021 23:23:32 +0000 (10:23 +1100)
commitaf2d0f188c15a120935c35ecbea5d032aeaa2971
tree12b320dac9329c0be1207b2b8dcc17a0baa4a0f2
parent4ea84d3144a1d2d3b609486c3eda21a1c3be34c2
gtk: Hold reference on controller until events are fully handled

Fixes premature controller unreferencing in
gtk_event_controller_handle_event() if the controller itself is being
removed while handling the event.
gtk/gtkeventcontroller.c